package com.thinkingstar.iads.cs.sys.enumerate;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public enum PROJECT_DESIGN_COURSE {
	
	提入资料("srzl","提入资料",PROJECT_DESIGN_COURSE.URL+"/importData",null),
/*	总体设计原则("ztsjyz","总体设计原则",PROJECT_DESIGN_COURSE.URL+"/totalityDesignPrinciple",null),
	动车组配属原则("dczpsyz","动车组配属原则",PROJECT_DESIGN_COURSE.URL+"/bulletDesignPrinciple",null),
	设计救援设备("sjjysb","设计救援设备",PROJECT_DESIGN_COURSE.URL+"/designRescueEquipment",null),
	既有动车设施("sydcss","既有动车设施",PROJECT_DESIGN_COURSE.URL+"/bulletImplement",null),*/
	/*设计原则("sjyz","设计原则",PROJECT_DESIGN_COURSE.URL+"/designPrinciple",null),*/
	动车设计("dcsj","专业设计计算",PROJECT_DESIGN_COURSE.URL+"/bulletTrainDesign",null),
	动车机务设施("dcjwss","动车/机务设施",PROJECT_DESIGN_COURSE.URL+"/maintenanceFacilities",null),
	既有动车设施("jydcss","动车设施",PROJECT_DESIGN_COURSE.URL+"/trainFacilities",null),
	设计评审("sjps","设计评审",PROJECT_DESIGN_COURSE.URL+"/designReview",null),
	设备选型("sbsj","设备选型",PROJECT_DESIGN_COURSE.URL+"/equipmentDesign",null),
	总图设计("ztsj","总图设计",PROJECT_DESIGN_COURSE.URL+"/generalDrawDesign",null),
	单体图设计("dttsj","单体图设计",PROJECT_DESIGN_COURSE.URL+"/monomerDrawDesign",null),
	提出资料("tczl","提出资料",PROJECT_DESIGN_COURSE.URL+"/putForward",null),
	协同设计("xtsj","协同设计",PROJECT_DESIGN_COURSE.URL+"/coordinateDesign",null),
	辅助机车交路设计软件("bimjk","辅助机车交路设计软件",PROJECT_DESIGN_COURSE.URL+"/bimAdapter",null);

	
	private final String code;
	private final String desc;
	private final String url;
	private final static String URL = "/projectCenter/projectDesign";
	private List<PROJECT_DESIGN_COURSE> children_list = new ArrayList<>();
	
	private PROJECT_DESIGN_COURSE(String code, String desc , String url , List<PROJECT_DESIGN_COURSE> children_list) {
		this.code = code;
		this.desc = desc;
		this.url = url;
		this.children_list = children_list;
	}

	public String getDesc() {
		return desc;
	}

	public String getCode() {
		return code;
	}
	
	public String getUrl(){
		return url;
	}
	
	public List <PROJECT_DESIGN_COURSE> getCidList(){
		return children_list;
	}
	
/*	public static List<PROJECT_DESIGN_COURSE> getSjyz(){
		List <PROJECT_DESIGN_COURSE> sjyz = new ArrayList<>();
		sjyz.add(动车组配属原则);
		sjyz.add(总体设计原则);
		sjyz.add(既有动车设施);
		sjyz.add(设计救援设备);
		return sjyz;
	}*/
	
	public static List <PROJECT_DESIGN_COURSE> getAll(String content_name){
		List <PROJECT_DESIGN_COURSE> list = new ArrayList<>();
		if("机务动车专业工作量计算".equals(content_name)){
			list.add(提入资料);
			list.add(动车设计);
			list.add(动车机务设施);
			/*list.add(设计评审);*/
			list.add(提出资料);
			list.add(辅助机车交路设计软件);
		}else{
			list.add(提入资料);
			list.add(动车设计);
			list.add(既有动车设施);
			list.add(设计评审);
			list.add(总图设计);
			list.add(单体图设计);
			list.add(设备选型);
			list.add(提出资料);
			list.add(协同设计);
			/*list.add(辅助机车交路设计软件);*/
		}
		return list;
	}

	

}
